<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
   <!-- <link rel="stylesheet" href="../../static/layer/css/layui.css"/>
    <script type="text/javascript" src="../../static/layer/layui.js"></script>-->
</head>
<style>
    .layui-laypage{
        margin:0 0 0 0 !important;
    }
</style>
<body>
<div class="layui-tab-item layui-show">
    <div class="layui-inline">
        <input class="layui-input" name="id" id="watercode" placeholder="请输入水表编号"
               autocomplete="off">
    </div>
    <div class="layui-input-inline">
        <input type="text" class="layui-input" id="waterdate" placeholder="请选择月份" readonly="">
    </div>
    <button class="layui-btn" onclick="search(1)">搜索</button>
   <!-- <button class="layui-btn layui-btn-normal" id="genWaterRecord" onclick="genWaterRecord()">生成本月抄表记录</button>-->
    <button class="layui-btn layui-btn-normal AUTH-CBGL_SCZD" id="genWaterBillMany" onclick="genWaterBillMany()">批量生成账单</button>
    <table id="sbgl" lay-filter="water">
        <!--<script type="text/html" id="dbglBar">-->
        <div style="display: none;"  id="sbglBar">
            {{#  if(d.IS_BILL != 2){ }}
            <a class="layui-btn layui-btn-mini AUTH-CBGL_SCZD" lay-event="genRecord">抄表记录</a>
            {{#  } else { }}
            {{#  } }}
        </div>
        <!--</script>-->
        <script type="text/html" id="curDate">
            <!--{{#  if(d.IS_BILL != 2){ }}-->
            <input type="text" class="layui-input cur-date" eid="{{d.EID}}" id="{{(d.ID == undefined)?'':d.ID}}" value="{{(d.CUR_DATE == undefined)?'':d.CUR_DATE}}">
            <!--{{#  } else { }}-->
            <span>{{(d.CUR_DATE == undefined)?'':d.CUR_DATE}}</span>
            <!--{{#  } }}-->
        </script>
    </table>
</div>
<script type="text/javascript" src="../../static/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../../static/js/common/dateUtils.js"></script>
<script type="text/javascript" src="../../static/js/common/authUtils.js"></script>
<script type="text/javascript" src="../../static/js/common/queryUtils.js"></script>
<script type="text/javascript" src="../../static/ujs/hydropower/meter_water.js"></script>
<script type="text/html" id="attrTpl">
    {{# var attr = d.ATTR }}
    {{# if (attr == '0'){ }}
    <span>普通表</span>
    {{# } else{ }}
    <span>智能表</span>
    {{# } }}
</script>
</body>
</html>